package com.example.shardingjdbc.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.shardingjdbc.entity.ScadaHistory;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Map;

@Mapper
public interface ScadaHisthoyMapper extends BaseMapper<ScadaHistory> {
    List<ScadaHistory> getUnitHistoryDataList(@Param("heatUnitId") List<String> heatUnitId,
                                              @Param("startDate") Date startDate,
                                              @Param("endDate") Date endDate,
                                              @Param("cnt") String cnt);

    List<ScadaHistory> getUnitHistoryDataListNoBroadCast(@Param("startDate") Date startDate,
                                                             @Param("endDate") Date endDate);

    /**
     * 获取移动端主菜单id
     */
    String getMobileFuncChilds(@Param("funcId") Long funcId);
}
